package com.example.jnindkdemo;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.util.Log;

public class NDKActivity extends AppCompatActivity {
    private static final String TAG = "NDKActivity";

    static {
        System.loadLibrary("jni-test");
    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        Log.e(TAG, "onCreate: get:" + get());
        set("hello word!");
    }

    public native String get();
    public native void set(String str);
}
